package org.icosagon.core;

/**
 *
 * @author Daniel Owens
 */
public class InvalidNumberException extends RuntimeException {
    private Double value = null;

    public InvalidNumberException(String msg) {
        super(msg);
    }

    public void setInvalidNumber(int num) {
        this.value = new Double((double)num);
    }

    public void setInvalidNumber(double num) {
        this.value = new Double(num);
    }

    public int intValue() {
        return ((int)this.value.doubleValue());
    }

    public double doubleValue() {
        return this.value.doubleValue();
    }
}